<?php
class Regions extends MY_Controller{
    public function __construct(){
        parent::__construct();
		$this->load->model('model_home');
    }
	public function index(){
		$id = $this->uri->segment(3);
		$data['regions'] = $this->model_home->getregion($id);
		if($data['regions'] == NULL){ redirect(base_url());}
		$data['title'] = $data['regions']['region_title'];
		$this->load->view("regions/layout",$data);
	}
}